package com.Maykk.Demo03;

/**
 * @ClassName: MyThread
 * @Description: TODO 自定义多线程类
 * @Author: MaykkStar@163.com
 */
public class MyThread extends Thread{
    public MyThread() {
        super();
    }

    public MyThread(String name) {
        super(name);
    }

    @Override
    public void run() {
        String[] songs = {
               "蒸羊羔",
               "蒸熊掌",
               "蒸鹿尾儿",
               "烧花鸭",
               "烧雏鸡",
               "烧子鹅",
               "卤猪",
               "卤鸭",
               "酱鸡",
               "腊肉",
               "松花小肚儿"
        };
        for (String song : songs) {
            System.out.printf("%-5s报菜名：%s\n", Thread.currentThread().getName(), song);
        }
    }
}
